import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Vant from 'vant'; // 1.全量引入所有组件
import 'vant/lib/index.css'; // 2.引入组件样式
import VueLazyloadNext from 'vue-lazyload-next'
const loadimage = require('./assets/logo.png')
const errorimage = require('./assets/error.jpg')

const app = createApp(App)
app.use(Vant); // 3.注册所有组件
app.use(
    VueLazyloadNext,
    {
        preLoad: 1.3,
        error: errorimage,
        loading: loadimage,
        attempt: 1
    }
)
app.use(store).use(router).mount('#app')
